package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.TreeEntity;

import java.util.List;

/**
 * 机构信息管理对象 sys_mechanism
 * 
 * @author ruoyi
 * @date 2023-08-03
 */
public class SysMechanism extends TreeEntity
{
    private static final long serialVersionUID = 1L;

    /** 机构id */
    private Long id;

    /** 机构编号 */
    @Excel(name = "机构编号")
    private String mechanismCode;

    /** 机构名称(供应商名称) */
    @Excel(name = "机构名称(供应商名称)")
    private String mechanismName;

    /** 级别id */
    @Excel(name = "级别id")
    private Long levelId;

    /** 行政区划编码 */
    @Excel(name = "行政区划编码")
    private String addvcd;

    /** 登陆密码 */
    private String password;

    /** 机构联系电话 */
    @Excel(name = "机构联系电话")
    private String tel;

    @Excel(name = "机构所在地区")
    private String region;

    /** 删除标记 0.未删除 1.已删除 */
    private Long isDeleted;

    private List<String> cityCode;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setMechanismCode(String mechanismCode) 
    {
        this.mechanismCode = mechanismCode;
    }

    public String getMechanismCode() 
    {
        return mechanismCode;
    }
    public void setMechanismName(String mechanismName) 
    {
        this.mechanismName = mechanismName;
    }

    public String getMechanismName() 
    {
        return mechanismName;
    }
    public void setLevelId(Long levelId) 
    {
        this.levelId = levelId;
    }

    public Long getLevelId() 
    {
        return levelId;
    }
    public void setAddvcd(String addvcd) 
    {
        this.addvcd = addvcd;
    }

    public String getAddvcd() 
    {
        return addvcd;
    }
    public void setPassword(String password) 
    {
        this.password = password;
    }

    public String getPassword() 
    {
        return password;
    }
    public void setTel(String tel) 
    {
        this.tel = tel;
    }

    public String getTel() 
    {
        return tel;
    }
    public void setIsDeleted(Long isDeleted) 
    {
        this.isDeleted = isDeleted;
    }

    public Long getIsDeleted() 
    {
        return isDeleted;
    }

    public String getRegion() {
        return region;
    }

    public void setRegion(String region) {
        this.region = region;
    }

    public List<String> getCityCode() {
        return cityCode;
    }

    public void setCityCode(List<String> cityCode) {
        this.cityCode = cityCode;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("mechanismCode", getMechanismCode())
            .append("mechanismName", getMechanismName())
            .append("levelId", getLevelId())
            .append("addvcd", getAddvcd())
            .append("region",getRegion())
            .append("password", getPassword())
            .append("tel", getTel())
            .append("parentId", getParentId())
            .append("createTime", getCreateTime())
            .append("isDeleted", getIsDeleted())
            .toString();
    }
}
